package ch6;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForScore {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入姓名：");
        String name=in.next();
        double score=0;
        for(int i=1;i<=5;i++){
            System.out.println("请输入第"+i+"门课的成绩：");
            score+=in.nextDouble();//score=score+in.nextDouble();
        }
        double avg=score/5;
        System.out.println("平均分是"+avg);

        //b=13; b%=10;//b=b%10
    }
}
